<?php
class PlanHosting extends AppModel {
	var $name = 'PlanHosting';
	var $useTable = 'planes_hosting';
	var $displayField = 'nombre';
	var $validate = array(
		'id' => array(
			'blank' => array(
				'rule' => array('blank'),
				'on' => 'create' 
			)
		),
		'nombre' => array(
			'maxlength' => array(
				'rule' => array('maxLength', '100')
			)
		)
	);

	var $hasMany = array(
		'PersonaPlanHosting' => array(
			'className' => 'PersonaPlanHosting',
			'foreignKey' => 'plan_hosting_id'
		)
	);
}
?>